<div class="easyui-layout" data-options="fit:true">
    <form id="saveFrom" method="post">
        <div data-options="region:'center'">
            <div class="easyui-tabs">
                <div title="基本信息">
                    <table class="inputTable">
                        <tr>
                            <td>真实姓名</td>
                            <td><input name="realName" onblur="getLoadPinyin()" placeholder="真实姓名"></td>
                        </tr>
                        <tr>
                            <td>员工号</td>
                            <td><input name="empNo" placeholder="员工号"></td>
                        </tr>
                        <tr>
                            <td>登录名</td>
                            <td><input name="loginName" placeholder="登录名"></td>
                        </tr>
                        <tr>
                            <td>密码</td>
                            <td><input name="password" placeholder="密码"></td>
                        </tr>
                        <tr>
                            <td>手机号</td>
                            <td><input name="telephone" placeholder="手机号"></td>
                        </tr>
                        <tr>
                            <td>邮箱</td>
                            <td><input name="email" placeholder="邮箱"></td>
                        </tr>

                        <tr>
                            <td>部门</td>
                            <td><input name="dept" placeholder="部门"></td>
                        </tr>
                        <tr>
                            <td>职位</td>
                            <td><input name="position" placeholder="职位"></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </form>
    <div data-options="region:'south',border:false" style="text-align:right;padding:5px">
        <a class="easyui-linkbutton save" data-options="iconCls:'fa fa-save'" href="javascript:;"
           style="width:80px">保存</a>
        <a class="easyui-linkbutton" data-options="iconCls:'fa fa-close '" href="javascript:;"
           onclick="javascript:$('#win').window('close')" style="width:80px">取消</a>
    </div>
</div>
<script>
    function getLoadPinyin() {
        $.get("/util/pinyin", {text: $("input[name=realName]").val()}, function (data) {
            $("input[name=loginName]").val(data);
        })
    }
</script>